<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Common\Logic;
use Common\Model\UserModel;
use Common\Model\SmsRecordModel;
/**
 * base基类控制器
 */
class SmsLogic extends BaseLogic {
    
    private $userModel;
    private $smsRecordModel;
    /**
     * 初始化方法
     */
    public function __construct() {
        parent::__construct();
        $this->userModel = new UserModel();
        $this->smsRecordModel = new SmsRecordModel;
    }
    
    /**
     * 验证短信验证码
     * @param type $phone 手机号
     * @param type $code 验证码
     */
    public function checkSmsVericode($phone,$code){
        return $this->smsRecordModel->checkSmsVericode($phone,$code);
    }

   
}